//
// Created by ZhuanZ（无密码） on 2025/2/5.
//
#include "stdio.h"
void ScoreLevel(int score);
int main()
{
    int score = 0;
    char ch = 'A';
    while (1)
    {
        printf("input:");
        scanf("%d",&score);
        if(score<=0 || score >= 100){
            printf("输入有误重新输入！\n");
        } else{
            break;
        }
    }
    ScoreLevel(score);
}
void ScoreLevel(int score)
{
    if(score>= 90 && score <= 100)
    {
        printf("等级为：A");
    } else if(score>= 80 && score <= 89)
    {
        printf("等级为：B");
    } else if(score>= 70 && score <= 79)
    {
        printf("等级为：C");
    }else if(score>= 60 && score <= 69)
    {
        printf("等级为：D");
    } else{
        printf("等级为：E");
    }
}